//    Copyright (C) Kherty.  All rights reserved.
namespace OpenLS.Spreadsheet.Extensibility
{
    public class NoStringToDoubleConversionAttribute : ParameterConverterAttribute
    {
        internal override void ConvertImp(ConversionData data)
        {
            if (data.Value is string && data.TargetType == typeof(double))
                data.Error = Errors.ValueError;
        }
    }
}